/**
 * 将取值的时间表达式转为日期yyyy/mm/dd hh:mm:ss
 * @param a
 * @returns yyy/mm/dd hh:mm:ss
 */
export function formatDate(a) {
  const datetime = new Date(a)
  const year = datetime.getFullYear()
  const month = datetime.getMonth()
  const date = datetime.getDate()
  const hour = datetime.getHours()
  const minute = datetime.getMinutes()
  const second = datetime.getSeconds()
  // 
  //  < 10 ? '0' + date : date))
  const time = year +
        '/' +
        ((month + 1) >= 10 ? (month + 1) : '0' + (month + 1)) +
        '/' +
        (date < 10 ? '0' + date : date) +
        ' ' +
        (hour < 10 ? '0' + hour : hour) +
        ':' +
        (minute < 10 ? '0' + minute : minute) +
        ':' +
        (second < 10 ? '0' + second : second)
  // 
  return time
}
